﻿using Microsoft.AspNetCore.Authorization;

namespace ZenSystemService.Api.Common.Auth
{
    public class FunctionAuthorizeAttribute : AuthorizeAttribute
    {
        public FunctionAuthorizeAttribute(string functionName)
        {
            Policy = $"FunctionPolicy_{functionName}";
        }
    }
}
